<div id="Breadcrumb" class="Breadcrumb">
    <ul>
        <li class="first">
            <a href="<?php echo base_url();?>">
                Trang chủ
            </a>
        </li> 
        <li>
            <a href="<?php echo base_url();?>account/personal.html">Tài khoản của tôi</a>
        </li>
        <li>
            <span>Thông tin tài khoản</span>
        </li>
    </ul>
</div>
<div class="Clear" ></div>

<form method="post" action="<?php echo base_url().'account/information';?>">		                
<div id="cphMain_Content">
    <div id="cphMain_ctl00_ContentPaneTop" class="top">
        <div class="Account-Module DefaultModule">
            
        <script type="text/javascript">
        $j(function () {
            $j("#calendasv").datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat: "dd/mm/yy",
                showStatus: true,
                showOn: "both",
                buttonImage: '../skin/images/calendar.gif',
                buttonImageOnly: true
            });
        });
        </script>
        <div class="Block">
            <div class="defaultTitle MyAccountTitle">
                <h1>
                    Thông tin tài khoản
                </h1>
            </div>
            <div class="defaultContent BlockContent MyAccountContent">
                
                <div class="FormContainer HorizontalFormContainer NarrowFormContainer">
                        <p class="required">
                              <?php 
                                    if($this->session->userdata('thongbao')==1){
                                        echo 'Bạn đã cập nhập thành công.</br>';
                                    }
                                    
                              ?>
                        </p>
                    <dl>
                        <dt><span class="required">*</span> Họ đệm:</dt>
                        <dd>
                            <input name="firstname" type="text" value="<?php if(!empty($user->firstname)){ echo $user->firstname;}?>" id="firstname" class="NormalTextBox" style="width:200px;" />
                            <?php echo form_error('firstname', '<span class="required">', '</span>');?>
                            </dd>
                            
                             <dt><span class="required">*</span> Tên:</dt>
                        <dd>
                            <input name="lastname" type="text" value="<?php if(!empty($user->lastname)){ echo $user->lastname;}?>" id="lastname" class="NormalTextBox" style="width:200px;" />
                            <?php echo form_error('lastname', '<span class="required">', '</span>');?>
                            </dd>
                            
                           <dt>Ngày sinh:</dt>
                        <dd>
                            <input name="calendasv" type="text" id="calendasv" class="TextInput" style="width: 100px;" value="<?php if(!empty($user->birthday)){ echo $user->birthday;}?>" />
                           &nbsp;</dd>
                        <dt>Công ty:</dt>
                        <dd>
                            <input name="company" type="text" value="<?php if(!empty($user->company)){ echo $user->company;}?>" id="company" class="NormalTextBox" style="width:350px;" />
                            </dd>
                        <dt><span class="required">*</span> Điện thoại:</dt>
                        <dd>
                            <input name="phone" type="text" value="<?php if(!empty($user->phone)){ echo $user->phone;}?>" id="phone" class="NormalTextBox" style="width:200px;" />
                            <?php echo form_error('phone', '<span class="required">', '</span>');?>
                            </dd>
                           
                           <dt>Email:</dt>
                        <dd>
                            <input name="email" type="text" value="<?php if(!empty($user->email)){ echo $user->email;}?>" id="email" disabled="disabled" class="aspNetDisabled NormalTextBox" style="width:350px;" />
                            </dd>
                           
                        
                        <dt><span class="required">*</span> Địa chỉ:</dt>
                                        <dd>
                                            <input name="address" type="text" id="address" class="NormalTextBox" value="<?php if(!empty($user->diachi)){ echo $user->diachi;}?>" style="width:350px;" />
                                             <?php echo form_error('address', '<span class="required">', '</span>');?>
                                        </dd>
                        <dt><span class="required">*</span> Tỉnh/Thành phố:</dt>
                        <dd>
                            <select name="city" id="city" class="NormalTextBox" style="width:206px;">
                        		<option <?php if(!empty($user->city)){if($user->city=='2')echo 'selected="selected"';} ?> value="2">Hà Nội</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='8')echo 'selected="selected"';} ?> value="8">Hồ Chí Minh</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='10')echo 'selected="selected"';} ?> value="10">Đà Nẵng</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='57')echo 'selected="selected"';} ?> value="57">Cần Thơ</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='7')echo 'selected="selected"';} ?> value="7">An Giang</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='54')echo 'selected="selected"';} ?> value="54">Bà Rịa - Vũng Tàu</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='24')echo 'selected="selected"';} ?> value="24">Bắc Giang</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='17')echo 'selected="selected"';} ?> value="17">Bắc Kạn</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='62')echo 'selected="selected"';} ?> value="62">Bạc Liêu</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='25')echo 'selected="selected"';} ?> value="25">Bắc Ninh</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='58')echo 'selected="selected"';} ?> value="58">Bến Tre</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='40')echo 'selected="selected"';} ?> value="40">Bình Định</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='47')echo 'selected="selected"';} ?> value="47">Bình Dương</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='46')echo 'selected="selected"';} ?> value="46">Bình Phước</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='50')echo 'selected="selected"';} ?> value="50">Bình Thuận</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='63')echo 'selected="selected"';} ?> value="63">Cà Mau</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='12')echo 'selected="selected"';} ?> value="12">Cao Bằng</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='43')echo 'selected="selected"';} ?> value="43">Đăk Lăk</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='65')echo 'selected="selected"';} ?> value="65">Đăk Nông</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='64')echo 'selected="selected"';} ?> value="64">Điện Biên</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='51')echo 'selected="selected"';} ?> value="51">Đồng Nai</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='53')echo 'selected="selected"';} ?> value="53">Đồng Tháp</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='41')echo 'selected="selected"';} ?> value="41">Gia Lai</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='11')echo 'selected="selected"';} ?> value="11">Hà Giang</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='28')echo 'selected="selected"';} ?> value="28">Hà Nam</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='33')echo 'selected="selected"';} ?> value="33">Hà Tĩnh</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='5')echo 'selected="selected"';} ?> value="5">Hải Dương</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='9')echo 'selected="selected"';} ?> value="9">Hải Phòng</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='66')echo 'selected="selected"';} ?> value="66">Hậu Giang</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='27')echo 'selected="selected"';} ?> value="27">Hòa Bình</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='36')echo 'selected="selected"';} ?> value="36">Huế</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='26')echo 'selected="selected"';} ?> value="26">Hưng Yên</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='44')echo 'selected="selected"';} ?> value="44">Khánh Hòa</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='56')echo 'selected="selected"';} ?> value="56">Kiên Giang</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='39')echo 'selected="selected"';} ?> value="39">Kon Tum</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='13')echo 'selected="selected"';} ?> value="13">Lai Châu</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='45')echo 'selected="selected"';} ?> value="45">Lâm Đồng</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='16')echo 'selected="selected"';} ?> value="16">Lạng Sơn</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='14')echo 'selected="selected"';} ?> value="14">Lào Cai</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='52')echo 'selected="selected"';} ?> value="52">Long An</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='29')echo 'selected="selected"';} ?> value="29">Nam Định</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='32')echo 'selected="selected"';} ?> value="32">Nghệ An</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='3')echo 'selected="selected"';} ?> value="3">Ninh Bình</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='48')echo 'selected="selected"';} ?> value="48">Ninh Thuận</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='21')echo 'selected="selected"';} ?> value="21">Phú Thọ</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='42')echo 'selected="selected"';} ?> value="42">Phú Yên</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='34')echo 'selected="selected"';} ?> value="34">Quảng Bình</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='37')echo 'selected="selected"';} ?> value="37">Quảng Nam</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='38')echo 'selected="selected"';} ?> value="38">Quảng Ngãi</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='23')echo 'selected="selected"';} ?> value="23">Quảng Ninh</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='35')echo 'selected="selected"';} ?> value="35">Quảng Trị</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='61')echo 'selected="selected"';} ?> value="61">Sóc Trăng</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='20')echo 'selected="selected"';} ?> value="20">Sơn La</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='49')echo 'selected="selected"';} ?> value="49">Tây Ninh</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='30')echo 'selected="selected"';} ?> value="30">Thái Bình</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='18')echo 'selected="selected"';} ?> value="18">Thái Nguyên</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='31')echo 'selected="selected"';} ?> value="31">Thanh Hóa</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='55')echo 'selected="selected"';} ?> value="55">Tiền Giang</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='60')echo 'selected="selected"';} ?> value="60">Trà Vinh</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='15')echo 'selected="selected"';} ?> value="15">Tuyên Quang</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='59')echo 'selected="selected"';} ?> value="59">Vĩnh Long</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='22')echo 'selected="selected"';} ?> value="22">Vĩnh Phúc</option>
                        		<option <?php if(!empty($user->city)){if($user->city=='19')echo 'selected="selected"';} ?> value="19">Yên Bái</option>
                        	</select>
                        </dd>
                        <dt>Yahoo:</dt>
                        <dd>
                            <input name="yahoo" type="text" id="yahoo" class="NormalTextBox" value="<?php if(!empty($user->yahoo)){ echo $user->yahoo;}?>" style="width:350px;" />
                            </dd>
                        <dt>Skype:</dt>
                        <dd>
                            <input name="sky" type="text" id="sky" class="NormalTextBox" value="<?php if(!empty($user->skype)){ echo $user->skype;}?>" style="width:350px;" />
                            </dd>
                        <dt>Gtalk:</dt>
                        <dd>
                            <input name="gtalk" type="text" id="gtalk" class="NormalTextBox" value="<?php if(!empty($user->gtalk)){ echo $user->gtalk;}?>" style="width:350px;" />
                            </dd>
                        <dt>Facebook:</dt>
                        <dd>
                            <input name="facebook" type="text" id="facebook" class="NormalTextBox" value="<?php if(!empty($user->facebook)){ echo $user->facebook;}?>" style="width:350px;" />
                            </dd>
                        <dt>&nbsp;</dt>
                        <dd>
                            <input type="submit" name="capnhap" value="Cập nhật"  id="capnhap" class="CreateAccountButton" />
                            <input type="submit" name="quaylai" value="Quay lại" id="quaylai" class="CreateAccountButton" />
                        </dd>
                    </dl>
                </div>
                <h2>
                    Thay đổi mật khẩu
                </h2>
                <div class="FormContainer HorizontalFormContainer NarrowFormContainer">
                    <p class="required">
                              <?php 
                                    if($this->session->userdata('thongbao')==2){
                                        echo 'Bạn đã cập nhập mật khẩu thành công.</br>';
                                    }
                                    
                                    
                              ?>
                    </p>
                    <dl>
                        <dt>Mật khẩu:</dt>
                        <dd>
                            <input name="password" type="password" id="password" class="NormalTextBox" style="width:200px;" />
                             <?php echo form_error('password', '<span class="required">', '</span>');?>
                        </dd>
                        <dt>Nhập lại mật khẩu:</dt>
                        <dd>
                            <input name="passwordconfirm" type="password" id="passwordconfirm" class="NormalTextBox" style="width:200px;" />
                        </dd>
                        <dt>&nbsp;</dt>
                        <dd>
                            <input type="submit" name="changepass" value="Đổi mật khẩu"  id="changepass" class="CreateAccountButton" />
                             <?php echo form_error('changepass', '<span class="required">', '</span>');?>
                        </dd>
                    </dl>
                </div>
            </div>
            <div class="defaultFooter MyAccountFooter">
                <div>
                </div>
            </div>
            </div>
        
        </div>
  </div>
</div>
</form>